package com.zcx.qshop.activity;

import android.os.Bundle;
import android.view.ViewGroup;

import com.zcx.helper.activity.AppActivity;
import com.zcx.helper.bound.BoundViewHelper;
import com.zcx.qshop.QSApplication;

/**
 * Created by Administrator on 2015/8/7 0007.
 */
public class QSActivity extends AppActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        QSApplication.INSTANCE.addActivity(this);

    }

    @Override
    public void setContentView(int layoutResID) {

        super.setContentView(layoutResID);

        BoundViewHelper.boundView(this, QSApplication.ScaleScreenHelper.loadView((ViewGroup) getWindow().getDecorView()));

    }

    @Override
    protected void onDestroy() {

        super.onDestroy();

        QSApplication.INSTANCE.finishActivity(this);

    }

}
